package com.sdry.service.impl.hpf;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.hpf.FinishProductLibraryInMapper;
import com.sdry.model.hpf.FinishProductLibraryIn;
import com.sdry.service.hpf.FinishProductLibraryInService;

/**
 * @ClassName: FinishProductLibraryInServiceImpl 
 * @Description:成品库入库Service实现
 * @Author hpf
 * @Date 2019年1月28日 下午4:11:58 
 * @version 1.0
 */
@Service
public class FinishProductLibraryInServiceImpl implements FinishProductLibraryInService {

	@Resource
	private FinishProductLibraryInMapper finishProductLibraryInMapper;
	
	
	/**
	 * 成品库入库总数
	 * @param finishProductLibraryIn
	 * @return
	 */
	public Integer countFinishProductLibraryIn(FinishProductLibraryIn finishProductLibraryIn) {
		// TODO Auto-generated method stub
		return finishProductLibraryInMapper.countFinishProductLibraryIn(finishProductLibraryIn);
	}

	/**
	 * 分页查询成品库入库
	 * @param map
	 * @return
	 */
	public List<FinishProductLibraryIn> listPageFinishProductLibraryIn(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return finishProductLibraryInMapper.listPageFinishProductLibraryIn(map);
	}

	/**
	 * 查询所有成品库入库
	 * @return
	 */
	public List<FinishProductLibraryIn> listAllFinishProductLibraryIn() {
		// TODO Auto-generated method stub
		return finishProductLibraryInMapper.listAllFinishProductLibraryIn();
	}

	/**
	 * 新增成品库入库
	 * @param finishProductLibraryIn 成品库入库实体
	 * @return
	 */
	public Integer insertFinishProductLibraryIn(FinishProductLibraryIn finishProductLibraryIn) {
		// TODO Auto-generated method stub
		return finishProductLibraryInMapper.insertFinishProductLibraryIn(finishProductLibraryIn);
	}

}
